package world.xuewei.model.entity;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.*;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@JsonIgnoreProperties({"handler", "hibernateLazyInitializer", "fieldHandler"})

/**
 * 用户基础表(UserBase)实体类
 *
 * @author makejava
 * @since 2024-11-15 19:27:51
 */
public class UserBase implements Serializable {
    private static final long serialVersionUID = 107899992182767714L;
    /**
     * 主键ID
     */
    private Long id;
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 头像URL
     */
    private String avatar;
    /**
     * 状态：0-禁用 1-启用
     */
    private Integer status;
    /**
     * 最后登录时间
     */
    private Date lastLoginTime;

    private Date createTime;

    private Date updateTime;
    /**
     * 是否删除
     */
    private Integer isDeleted;
    /**
     * 积分
     */
    private Long points;

    private Role roles;  // 用户角色列表
}

